import requests from "@/utils/request";

// 查询所有仓库权限
export function SelectAll(){
    return requests({
        url: '/userStore/selectAll',
        method: 'get',
    })
}
// 根据用户id查询仓库权限
export function SelectByUid(param){
    return requests({
        url: '/userStore/'+param,
        method: 'get',
    })
}
// 新增仓库权限
export function AddUserStore(param){
    return requests({
        url: '/userStore/addWUserStore',
        method: 'post',
        data: param,
    })
}
// 根据id删除仓库权限
export function DeleteUserStore(param){
    return requests({
        url: '/userStore/'+param,
        method: 'delete',
    })
}
// 修改仓库权限
export function updateByVo(param){
    return requests({
        url: '/userStore/updateByVo',
        method: 'put',
        data: param,
    })
}
